import { Alova } from '@/utils/http/alova/index';

export function patchAuth(params) {
  return Alova.Patch('admin/auth', params);
}

export function getAdmin(id) {
  return Alova.Get('admin/user/' + id);
}

export function postAdmin(params) {
  return Alova.Post('admin/user', params);
}

export function putAdmin(params) {
  return Alova.Put('admin/user', params);
}

export function patchAdmin(params) {
  return Alova.Patch('admin/user', params);
}

export function deleteAdmin(id) {
  return Alova.Delete('admin/user/' + id);
}
